package com.ruoyi.eservice.service;

import java.util.List;
import com.ruoyi.eservice.pojo.entity.ShoppingCart;
/**
 * 购物车Service接口
 *
 * @author Jackson
 * @date 2022-11-11
 */
public interface IShoppingCartService
{
    /**
     * 查询购物车
     *
     * @param shoppingCartId 购物车主键
     * @return 购物车
     */
    public ShoppingCart selectShoppingCartByShoppingCartId(Long shoppingCartId);

    /**
     * 查询购物车列表
     *
     * @param shoppingCart 购物车
     * @return 购物车集合
     */
    public List<ShoppingCart> selectShoppingCartList(ShoppingCart shoppingCart);

    /**
     * 新增购物车
     *
     * @param shoppingCart 购物车
     * @return 结果
     */
    public int insertShoppingCart(ShoppingCart shoppingCart);

    /**
     * 修改购物车
     *
     * @param shoppingCart 购物车
     * @return 结果
     */
    public int updateShoppingCart(ShoppingCart shoppingCart);

    /**
     * 批量删除购物车
     *
     * @param shoppingCartIds 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteShoppingCartByShoppingCartIds(Long[] shoppingCartIds);

    /**
     * 删除购物车信息
     *
     * @param shoppingCartId 购物车主键
     * @return 结果
     */
    public int deleteShoppingCartByShoppingCartId(Long shoppingCartId);
}
